#ifndef _SCHEDULER_TASK_H
#define _SCHEDULER_TASK_H
#include "stm32f4xx.h"
#define NEW_CODE_SCHEDULER
#ifdef NEW_CODE_SCHEDULER
void Loop_1000Hz(void);
void Loop_250Hz(void);
void Loop_10Hz(void);
typedef struct
{
	void(*task_func)(void);
	uint16_t rate_hz;
	uint16_t interval_ticks;
	uint32_t last_run;
}sched_task_t;
void Scheduler_Setup(void);
void Scheduler_Run(void);
extern volatile int time_tick_1ms;
#endif
#endif

